//
//  ByModelShopCate.m
//  chequanbao_ios
//
//  Created by mc on 2017/10/18.
//  Copyright © 2017年 com.itboye. All rights reserved.
//

#import "ByModelShopCate.h"

@implementation ByModelShopCate
- (void)setAttributes:(NSDictionary *)jsonDic{
    [super setAttributes:jsonDic];
    _cate_id = jsonDic[@"id"];
    
    NSMutableArray *temp = [NSMutableArray array];
    for (NSDictionary *dic in jsonDic[@"children"]) {
        ByModelShopCate *model = [[ByModelShopCate alloc] initContentWithDic:dic];
        [temp addObject:model];
    }
    _children = [temp copy];
    
    _iconUrl = BOYE_PICTURE_VIEW_URL(jsonDic[@"icon"]);
}
@end
